
#include "FactoryDistribution.hpp"

DefaultAllocDistribution* FactoryDistribution::getDistribution(){
  return  new DefaultAllocDistribution(24); 
}

DefaultAllocDistribution* FactoryDistribution::getDistribution(size_t size){
  return  new DefaultAllocDistribution(size); 
}


LinearAllocDistribution * FactoryDistribution::getDistributionLinearAlloc(){
  return new LinearAllocDistribution();
}


GaussianAllocDistribution* FactoryDistribution::getDistributionGaussianAlloc(){
  return new GaussianAllocDistribution(); 
}

UniformeAllocDistribution* FactoryDistribution::getDistributionUniformeAlloc(int ordre){
  return new UniformeAllocDistribution(ordre); 
}

Bernouillie* FactoryDistribution::getSourceBinaireBernouillie(float p){
  return new Bernouillie(p);
}
 
